<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:icecore="http://www.icefaces.org/icefaces/core"
      xmlns:ace="http://www.icefaces.org/icefaces/components">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
      <ace:panel header="message" > 
          
             </ace:panel>
      <h:form>
<!--         <ace:dataTable id="membreTableTable"
                         value="#{leLogin.membreLogerListe}"
                       var="liste2">
                       <ace:column id="phot" >
                           <h:outputText id="ph" value="#{liste2.nom}"/>
                </ace:column>
          </ace:dataTable>-->
        <ace:dataTable id="MessageTable"
                       value="#{afficheMessage.maListeMessage}"
                          var="liste">
                <ace:column id="photo1" >
                    <h:graphicImage id="photo" value="#{liste.sendDate}"/>
                </ace:column>
                <ace:column id="nom1"  >
                    <h:outputText id="nom" value="#{liste.msgFrom}" rendered="false"/>
                </ace:column>
            <ace:column id="nom2"  >
                <h:outputText id="nom3" value="#{liste.msgTo}" rendered="false"/>
                </ace:column>
            <ace:column id="mess"  >
                <h:outputText id="messa" value="#{liste.replyToMsgId}" rendered="false"/>
                </ace:column>
            <ace:column id="dat"  >
                <h:outputText id="date" value="#{liste.sendDate}" rendered="false"/>
                </ace:column>
            <ace:column id="nom13"  >
                <h:outputText id="nom6" value="#{liste.dejaLu}" rendered="false"/>
<!--                <h:outputLabel value="#{liste.msgFrom}" /> <h:outputLabel value="coucou" />-->
                </ace:column>
            <ace:column id="email1">
                <h:commandLink action="envoiMessage" value="#{liste.message}">
                    <f:setPropertyActionListener target="#{afficheMessage.unMess.msgFrom}" value="#{liste.msgFrom}"/>
                    <f:setPropertyActionListener target="#{afficheMessage.unMess.msgTo}" value="#{liste.msgTo}"/>
                            </h:commandLink>
                 
<!--                  <h:commandLink action="#{afficheMessage.getMessageId(liste.msgFrom, liste.msgTo)}" value="#{liste.message}">
                  <h:outputLabel value="#{liste.msgFrom}" 
                   
                            </h:commandLink>-->
                </ace:column> 
                 
            </ace:dataTable>
        </h:form>
         <h:link outcome="welcomeIcefaces" value="ICEfaces welcome page" />
    </h:body>
</html>
